﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName = "GameProperty/HeroState")]
public class HeroProperty : ScriptableObject {
    [Header("范围：10-30"),Range(10,30)]
    public float meleeActtack;//近战攻击力
    [Header("范围：5-9"), Range(5f, 9f)]
    public float moveSpeed;//移动速度
    [Header("范围：5-50"), Range(5, 50)]
    public float jumpForce;
    [Header("范围：0-0.5"), Range(0, 0.5f)]
    public float jumpTime;//跳跃高度和时间
    public uint ammoNumber = 50000;//子弹数量(默认五万，大与999就为无限)
    public uint bombNumber;//炸弹数量
    //public HeroState CurrentHeroState;//当前玩家的状态
}

public class ControllerConfig //控制键盘映射类
{
    public string horizontal;
    public string vertical; 
    public string fire; 
    public string bmob; 
    public string jump; 
}

public enum HeroState //用于做参照
{
    Idle,
    IdleMelee,
    IdleFire,
    IdleThrow,
    Up,
    UpFire,
    UpJump,
    UpJumpFire,
    Angle,
    AngleFire,
    Down,
    DownMove,
    DownMelee,
    DownFire,
    DownThrow,
    Move,
    MoveMelee,
    MoveFire,
    MoveThrow,
    Jump,
    JumpMelee,
    JumpFire,
    JumpThrow,
    JumpAngle,
    JumpAngleFire,
    JumpDown,
    JumpDownFire,
    Die,
    Action,
}
//隐藏状态「MoveJum,MoveJumpFire,MoveJumpThrow」